gint height,
AtkCoordType coord_type)
{
- GtkWidget *widget;
-
- widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (component));
- if (widget == NULL)
- return FALSE;
-
- if (!gtk_widget_is_toplevel (widget))
- return FALSE;
-
- if (coord_type == ATK_XY_WINDOW)
- {
- gint x_current, y_current;
- GdkSurface *surface = gtk_widget_get_surface (widget);
-
- gdk_surface_get_origin (surface, &x_current, &y_current);
- x_current += x;
- y_current += y;
- if (x_current < 0 || y_current < 0)
- return FALSE;
- else
- {
- gtk_window_move (GTK_WINDOW (widget), x_current, y_current);
- gtk_widget_set_size_request (widget, width, height);
- return TRUE;
- }
- }
- else if (coord_type == ATK_XY_SCREEN)
- {
- gtk_window_move (GTK_WINDOW (widget), x, y);
- gtk_widget_set_size_request (widget, width, height);
- return TRUE;
- }
- return FALSE;
+ return FALSE;
}
static gboolean
gint y,
AtkCoordType coord_type)
{
- GtkWidget *widget;
-
- widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (component));
- if (widget == NULL)
- return FALSE;
-
- if (gtk_widget_is_toplevel (widget))
- {
- if (coord_type == ATK_XY_WINDOW)
- {
- gint x_current, y_current;
- GdkSurface *surface = gtk_widget_get_surface (widget);
-
- gdk_surface_get_origin (surface, &x_current, &y_current);
- x_current += x;
- y_current += y;
- if (x_current < 0 || y_current < 0)
- return FALSE;
- else
- {
- gtk_window_move (GTK_WINDOW (widget), x_current, y_current);
- return TRUE;
- }
- }
- else if (coord_type == ATK_XY_SCREEN)
- {
- gtk_window_move (GTK_WINDOW (widget), x, y);
- return TRUE;
- }
- }
- return FALSE;
+ return FALSE;
}
static gboolean
gint width,
gint height)
{
- GtkWidget *widget;
-
- widget = gtk_accessible_get_widget (GTK_ACCESSIBLE (component));
- if (widget == NULL)
- return FALSE;
-
- if (gtk_widget_is_toplevel (widget))
- {
- gtk_widget_set_size_request (widget, width, height);
- return TRUE;
- }
- else
return FALSE;
}